package com.example.ujsfish.database;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import java.util.List;

@Dao
public interface PathPointDao {
    @Insert
    void insertPaths(PathPoint... paths);

    @Update
    void updatePaths(PathPoint... paths);

    @Delete
    void deletePaths(PathPoint... paths);

    @Query("DELETE FROM PathPoint")
    void deleteAllWorlds();

    @Query("SELECT * FROM PathPoint ORDER BY ID DESC")
    List<PathPoint> getAllPathPoints();



}
